package com.zygh.lz.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zygh.lz.entity.dto.PostDeployDTO;
import com.zygh.lz.entity.vo.EquipageDetailVO;
import com.zygh.lz.entity.vo.EquipageVO;
import com.zygh.lz.entity.vo.StaffVO;
import com.zygh.lz.entity.vo.XareaVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jhaol
 */
@Mapper
public interface PostDeployMapper {
    PostDeployDTO queryPostDeploy(@Param(Constants.WRAPPER) Wrapper lambda, @Param("tableName") String tableName);

    XareaVO getPostDeployById(@Param("id") Long id);

    EquipageDetailVO getEquipageDetailById(@Param("gpsid") String gpsid);

    List<XareaVO> getPostListByIdList(@Param("postIds") List<String> postIds);

    List<StaffVO> getPoliceByNumberList(@Param("policeNumber")List<String> policeNumber);

    List<EquipageVO> getEquipageByGpsIdList(@Param("equipageGpsIdList")List<String> equipageGpsIdList);

    XareaVO getSpecialPostDeployById(Long id);

    List<XareaVO> getSpecialPostListByIdList(@Param("postIds") List<String> postIds);

    List<EquipageDetailVO> getEquipageDetailByIds(@Param("gpsIds") List<String> gpsIds);
}
